package com.ice.work.moment.ticket.service;

import com.honeybee.cloud.framework.base.exception.business.BaseBizException;
import com.ice.work.moment.facade.ticket.dto.StationDTO;

import java.util.List;

/**
 * @Description Station
 * @Author DELL
 * @Create 2019-05-16
 * @Since 1.0.0
 */
public interface IStationService {



    /**
     * 通过code 查询
     * @param code
     * @return
     * @throws BaseBizException
     */
    StationDTO findByCode(String code) throws BaseBizException;

    /**
     * 爬取全部车站信息
     * @return
     * @throws BaseBizException
     */
    Boolean crawlingStation() throws BaseBizException;


    List<StationDTO> getStations() throws BaseBizException;
}
